<ion-view view-title="修改资料" class="xg-sign-view" ng-controller="modifyStaffCtrl">
  <ion-nav-buttons side="left">
    <a class="ion-ios-arrow-back" href="#/tab/account"></a>
  </ion-nav-buttons>
  <ion-content class="xg-sign-content">
    <div class="xg-sign-pic xg-signup-pic">
      <img src="../www/img/sign/logo_sign.png" alt="logo" class="xg-head-pic"  >
    </div>
    <div class="list">
      <ng-form name="staffForm">
      <label class="item item-input item-floating-label" >
        <span class="input-label" >姓名</span>
        <input type="text" ng-model="staff.name" placeholder="姓名" ng-maxlength="3" ng-minlength="2" required>
      </label>
      <label class="item item-input item-floating-label">
        <span class="input-label">手机号</span>
        <input type="text" ng-minlength="11" ng-maxlength="11" ng-model="staff.phone" placeholder="手机号">
      </label>

      <label class="item item-input  item-select">
        <span class="input-label">性别</span>
        <select  ng-options="s.id as s.sex for s in sexes"  ng-model="staff.sex" required></select>
      </label>
      <label class="item item-input  item-select">
        <span class="input-label">科室</span>
        <select  ng-options="department.id as department.name for department in departments" ng-model="staff.departmentid" required></select>
      </label>
      <label class="item item-input item-select">
        <span class="input-label">职工类别</span>
        <select  ng-options="status.id as status.name for status in statuses" ng-model="staff.status" required></select>
      </label>
      <button class="button button-full xg-sign-btn" ng-click="submit()" ng-disabled="staffForm.$invalid">

      修改资料

      </button>
      </ng-form>
    </div>
  </ion-content>
</ion-view>
